package com.zuikaku.nettychat;

import com.zuikaku.nettychat.netty.framework.NettyServer;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class NettychatApplication implements CommandLineRunner {

    @Autowired
    private NettyServer nettyServer;
    public static void main(String[] args) {
        SpringApplication.run(NettychatApplication.class, args);
    }



    @Override
    public void run(String... args) throws Exception {
        nettyServer.startServer();
    }
}
